package org.alps.pattern.decorator.battercake.v1;

/**
 * @date 2021-05-01
 * @author zkw
 */
public class BattercakeTest {
    public static void main(String[] args) {
        Battercake battercake = new Battercake();
        System.out.println(battercake.getMsg() + "，总价格：" + battercake.getPrice());

        BattercakeWithEgg battercakeWithEgg = new BattercakeWithEgg();
        System.out.println(battercakeWithEgg.getMsg() + "，总价格：" + battercakeWithEgg.getPrice());

        BattercakeWithSausage battercakeWithSausage = new BattercakeWithSausage();
        System.out.println(battercakeWithSausage.getMsg() + "，总价格：" + battercakeWithSausage.getPrice());

        BattercakeWithSausageAndEgg battercakeWithSausageAndEgg = new BattercakeWithSausageAndEgg();
        System.out.println(battercakeWithSausageAndEgg.getMsg() + "，总价格：" + battercakeWithSausageAndEgg.getPrice());

    }
}
